#函数名本质就是变量名
def func():
    print(123)
print(func) # 函数名 <function func at 0x104c29310>

# func = 123
# print(func) # 123

v1 = func
print(v1) # v1是指函数指针 <function func at 0x104c29310>
v2 = v1()
print(v2) # None ,指的是运行函数func

def func1():
    print(122)
data_list = [1,"中国",func1,func1()] #
print(data_list) # [1, '中国', <function func1 at 0x10f697b80>, None]


def func2():
    return 123
data_list = [func2]
print(data_list[0]())# 直接运行函数


f = lambda : 12378788
print(f())

f1 = lambda a1,a2:a1 + a2
print(f1(100,200))

f2 = lambda  data_str : data_str.upper()
print(f2("saska"))

f3 = lambda data_list:data_list[1]
print(f3([2,4342]))
